<?php
	$root = "http://".$_SERVER['HTTP_HOST']."/".substr($_SERVER['PHP_SELF'], 1, strpos(substr($_SERVER['PHP_SELF'], 1), "/"))."/";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<?php echo $root;?>"> 
    <title>My JSP 'explorerTest.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script src="js/jquery.min.js"></script>
	<script src="lib/comet/jquery.comet.js"></script>
  </head>
  
  <body>
	<p>this is comet Test jsp</p>
	<ul id="feed">
	
	</ul>
  </body>
  	<script type="text/javascript">
	$(function(){

    	$.comet.connect('listbox/comet.nut',{success:function(data){
    		console.log("data.message="+data.message);
        	$('ul#feed').append("<li>" + data.message + "</li>");
    	}});

	});
	</script>
</html>
